#!/bin/sh

#set path
export PATH=/var/local/java/jdk1.6.0_06/bin:$PATH

#arg 1 is path to PJAWS 
#arg 2 is pjaws file
#arg 3 paw id
cd $1
echo in directory
jar xf *.jar
echo extracted jar
nohup java $2 -i $3 >/dev/null 2>&1 > $3.out &
echo execute "java -cp . $2 -i $3" on exit
exit 1
